<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="robots" content="noindex,nofollow">
		<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
		<title><?php echo $cfg_webname;?>后台登录</title>
		<link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
		<link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="/static/web/css/admin.css">
		<script src="/static/web/js/jquery.min.js"></script>
		<script src="/static/web/js/login.js"></script>
	</head>
	<body>
		<?php if (preg_match('/MSIE/i',$_SERVER['HTTP_USER_AGENT']) || preg_match('/Trident/i',$_SERVER['HTTP_USER_AGENT'])) {?>
		<div class="browsehappy">
			<span>您使用的浏览器已过时，请<a href="https://www.dedebiz.com/browsehappy" target="_blank">更换浏览器</a>，提高后台操作体验</span>
		</div>
		<?php }?>
		<div class="login-head shadow-sm mb-3">
			<div class="container">
				<div class="row align-items-center">
					<div class="col-6 col-md-4">
						<a href="/" target="_blank" class="logo"><img src="/favicon.ico" title="<?php echo $cfg_soft_enname;?>"><?php echo $cfg_webname;?></a>
					</div>
					<div class="col-6 col-md-8">
						<div class="d-flex justify-content-end text-right">
							<a href="https://www.dedebiz.com/service" target="_blank"><i class="fa fa-handshake-o"></i> 技术服务</a>
							<a href="/" target="_blank" class="ml-3 d-none d-lg-block"><i class="fa fa-home"></i> 网站首页</a>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="container">
			<div class="login-from">
				<?php echo $redmsg;?>
				<div class="login-box shadow-sm mb-3">
					<h1>后台登录</h1>
					<form name="form1" method="post" action="login.php">
						<input type="hidden" name="gotopage" value="<?php if (!empty($gotopage)) echo RemoveXSS($gotopage);?>">
						<input type="hidden" name="dopost" value="login">
						<input type="hidden" name="adminstyle" value="newDedeBIZ">
						<div class="form-group">
							<label for="iptUserid">管理员账号</label>
							<input type="text" name="userid" id="iptUserid" class="form-control" placeholder="请输入管理员账号" required>
						</div>
						<div class="form-group">
							<label for="iptPwd">管理员密码</label>
							<input type="password" name="pwd" id="iptPwd" class="form-control" placeholder="请输入管理员密码" autocomplete="off" required>
						</div>
						<div id="vdimgck" class="form-group" style="display:none">
							<label for="iptValidate">验证码</label>
							<div class="input-group">
								<input type="text" name="validate" id="iptValidate" class="form-control text-uppercase" placeholder="请输入验证码">
								<img src="<?php echo $cfg_phpurl;?>/vdimgck.php" onclick="this.src='<?php echo $cfg_phpurl;?>/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码" id="validateimg">
							</div>
						</div>
						<div><button type="submit" class="btn btn-success btn-block">登录</button></div>
					</form>
				</div>
				<p><?php echo $cfg_powerby;?></p>
			</div>
		</div>
	</body>
</html>